<template>
  <div class="my">
    <div class="my_top">
      <div class="my_tops">
        <li>&emsp;</li>
        <li>我&emsp;的</li>
        <li>
          <van-icon name="ellipsis" />&ensp;
          <van-icon name="question-o" />
        </li>
      </div>
    </div>
    <div class="my_card">
      <li>
        <dl>
          <dt>
            <img src="https://img2.baidu.com/it/u=3308809134,960590498&fm=26&fmt=auto&gp=0.jpg" alt />
          </dt>
          <dd>
            <p>
              <span>{{username}}</span>
              <span>
                <a-badge count="5">
                  <a href="#" class="head-example" />
                  <a-icon type="mail" theme="twoTone" class="icon" />
                </a-badge>
              </span>
            </p>
            <p>{{id}}</p>
          </dd>
        </dl>
      </li>
      <li>
        <div>
          <span>
            <img src="../imges/18.png" alt />
          </span>
          <span>我的发布</span>
        </div>
        <div>
          <span>
            <img src="../imges/19.png" alt />
          </span>
          <span>收藏</span>
        </div>
        <div>
          <span>
            <img src="../imges/20.png" alt />
          </span>
          <span>浏览历史</span>
        </div>
      </li>
    </div>
    <div class="my_menu">
      <div>
        <span>支付明细</span>
        <span>
          <van-icon name="arrow" />
        </span>
      </div>
      <div>
        <span>问题反馈</span>
        <span>
          <van-icon name="arrow" />
        </span>
      </div>
      <div>
        <span>联系客服</span>
        <span>
          <van-icon name="arrow" />
        </span>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      username: localStorage.getItem("username"),
      id: localStorage.getItem("id")
    };
  }
};
</script>
<style scoped>
.my {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.my_top {
  width: 100%;
  height: 250px;
  background: #1180f4;
  position: relative;
}
.my_tops {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #fff;
}
.my_tops li:nth-child(2) {
  font-size: 20px;
}
.my_tops li:nth-child(3) {
  width: 90px;
  height: 30px;
  border: 1px solid #fff;
  border-radius: 20px;
  text-align: center;
  line-height: 34px;
}
.my_tops li:nth-child(3) .van-icon {
  font-size: 20px;
}
.my_card {
  width: 90%;
  height: 170px;
  background: #fff;
  border-radius: 10px;
  position: absolute;
  top: 100px;
  left: 20px;
  border: 1px solid #ccc;
  z-index: 999;
}
.my_menu {
  width: 100%;
  height: 200px;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  position: absolute;
  top: 200px;
  margin-top: 100px;
  background: #fff;
}
.my_menu div {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 30px;
  font-size: 16px;
  border-bottom: 5px solid #f0f0f0;
}
.my_card li:nth-child(1) dl dt img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
}
.my_card li:nth-child(1) dl dd p span:nth-child(2) {
  margin-left: 60px;
}
.my_card li:nth-child(1) dl dd .icon {
  font-size: 20px;
}
.my_card li:nth-child(1) dl {
  display: flex;
}
.my_card li:nth-child(1) {
  width: 95%;
  margin-top: 10px;
  height: 80px;
  border-bottom: 1px solid #cccccc;
  margin-left: 10px;
}
.my_card li:nth-child(1) dl dd p {
  margin-top: 5px;
  margin-left: 10px;
}
.my_card li:nth-child(2) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
}
.my_card li:nth-child(2) span {
  display: block;
  text-align: center;
}
</style>